package stream;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Summerday
 */
public class DataCache {

    private static List<Book> bookList;

    static {
        bookList = new ArrayList<>();
        bookList.add(Book.builder().author("天乔巴夏").id(1L).title("Java").pageCount(100).build());
        bookList.add(Book.builder().author("summerday").id(2L).title("SpringBoot").pageCount(200).build());
        bookList.add(Book.builder().author("hyh").id(3L).title("mysql").pageCount(500).build());
        bookList.add(Book.builder().author("tqbx").id(4L).title("Linux").pageCount(100).build());
    }

    public static List<Book> getData(){
        return bookList;
    }

}
